import Vue from 'vue'

import VueRouter from 'vue-router'
Vue.use(VueRouter)

import home from './components/tabbar/home.vue'
import member from './components/tabbar/member.vue'
import profile from './components/tabbar/profile.vue'
import shopCar from './components/tabbar/shopCar.vue'
import newsList from './components/news/newsList.vue'
import newsInfo from './components/news/newsInfo.vue'
import photoList from './components/photo/photoList.vue'
import photoInfo from './components/photo/photoInfo.vue'
import goodList from './components/goods/goodList.vue'
import goodsInfo from './components/goods/goodsInfo.vue'
import goodsComt from './components/goods/goodsComt.vue'
import introduce from './components/goods/introduce.vue'


export default new VueRouter({
    routes: [
        { path: "/", redirect: '/home' },
        { path: "/home", component: home },
        { path: "/member", component: member },
        { path: "/profile", component: profile },
        { path: "/shopCar", component: shopCar },
        { path: "/home/newsList", component: newsList },
        { path: "/home/newsInfo/:id", component: newsInfo },
        { path: "/home/photoList", component: photoList },
        { path: "/home/photoInfo/:id", component: photoInfo },
        { path: "/home/goodList", component: goodList },
        { path: "/home/goodsInfo/:id", component: goodsInfo },
        { path: "/home/goodsComt:id", component: goodsComt },
        { path: "/home/introduce:id", component: introduce },
    ],
    linkExactActiveClass: 'mui-active'
})